Vamos a hacer que nuestro copo de nieve vuele alrededor del escenario cuando pulsamos la barra de espacios.

  • Ve a y arrastra Space Bar a la parte inferior de tu programa.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("winter") sprite = codesters.Sprite("person12") sprite.go_to(-125, -150) frosty = codesters.Sprite("snowman") frosty.go_to(100, -125) snow = codesters.Sprite("snowflake3") snow.go_to(100, 75) greeting = codesters.Text("Happy Holidays!") greeting.go_to(0, 200) greeting.set_color("yellow") def click(sprite): sprite.say("I hope your holidays are great!") sprite.turn_left(360) # add other actions... sprite.event_click(click)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)